<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title>${section.name}: добавление</title>
</head>
<body>
<div class="nav">
  <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}">Home</a></span>
  <span class="menuButton"><g:link class="list" action="list">Topic List</g:link></span>
</div>
<div class="body">
  <h1>Create Topic</h1>
  <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
  </g:if>
  <g:hasErrors bean="${topicInstance}">
    <div class="errors">
      <g:renderErrors bean="${topicInstance}" as="list"/>
    </div>
  </g:hasErrors>
  <g:form action="save" method="post">
    <div class="dialog">
      <table>
        <tbody>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="notop">Notop:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: topicInstance, field: 'notop', 'errors')}">
            <g:checkBox name="notop" value="${topicInstance?.notop}"></g:checkBox>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="commitdate">Commitdate:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: topicInstance, field: 'commitdate', 'errors')}">
            <g:datePicker name="commitdate" value="${topicInstance?.commitdate}"></g:datePicker>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="deleted">Deleted:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: topicInstance, field: 'deleted', 'errors')}">
            <g:checkBox name="deleted" value="${topicInstance?.deleted}"></g:checkBox>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="lastmod">Lastmod:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: topicInstance, field: 'lastmod', 'errors')}">
            <g:datePicker name="lastmod" value="${topicInstance?.lastmod}"></g:datePicker>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="moderate">Moderate:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: topicInstance, field: 'moderate', 'errors')}">
            <g:checkBox name="moderate" value="${topicInstance?.moderate}"></g:checkBox>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="postip">Postip:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: topicInstance, field: 'postip', 'errors')}">
            <input type="text" id="postip" name="postip" value="${fieldValue(bean: topicInstance, field: 'postip')}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="title">Title:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: topicInstance, field: 'title', 'errors')}">
            <input type="text" id="title" name="title" value="${fieldValue(bean: topicInstance, field: 'title')}"/>
          </td>
        </tr>

        <tr class="prop">
          <td valign="top" class="name">
            <label for="url">Url:</label>
          </td>
          <td valign="top" class="value ${hasErrors(bean: topicInstance, field: 'url', 'errors')}">
            <input type="text" id="url" name="url" value="${fieldValue(bean: topicInstance, field: 'url')}"/>
          </td>
        </tr>

        </tbody>
      </table>
    </div>
    <div class="buttons">
      <span class="button"><input class="save" type="submit" value="Create"/></span>
    </div>
  </g:form>
</div>
</body>
</html>
